<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>#{resumoBean.titulo}</title>
</h:head>
<h:body>
	<h:form id="fmResumo" acceptcharset="ISO-8859-1">
		<p:panel style="width: 100%">
			<f:facet name="header">
				<p:outputLabel value="Resumo mensal" />
			</f:facet>
			
			<p:separator style="width: 100%; height: 5px" />
			
			<p:scrollPanel style="width: 100%; height:300px" >
				<p:panelGrid style="width : 100% ; height: 100px">
					<p:row>
						<p:column>
							<table>
								<tr>
									<ui:repeat var="resumoMes" value="#{resumoBean.listaResumoMes}">
										<td align="center">
											
											<p:outputLabel value="#{resumoMes.dia}"/>
											
											<table border="5" width="250" style="border-color: DarkSlateGray">
												<tr>
													<ui:repeat var="resumoBancos" value="#{resumoMes.bancos}">
														<td align="center">
															<p:outputLabel value="#{resumoBancos.nomeBanco}" style="font-size: 15px; font-weight:bold; color: black" />
														</td>
													</ui:repeat>
												</tr>
												<tr>
													<ui:repeat var="resumoReceitas" value="#{resumoMes.receitas}">
														<td align="center">
															<p:outputLabel value="#{resumoReceitas}" style="font-size: 15px; color: blue"/>
														</td>
													</ui:repeat>
												</tr>
												<tr>
													<ui:repeat var="resumoDespesas" value="#{resumoMes.despesas}">
														<td align="center">
															<p:outputLabel value="#{resumoDespesas}" style="font-size: 15px; color: red"/>
														</td>
													</ui:repeat>
												</tr>
												<tr>
													<ui:repeat var="resumoSaldos" value="#{resumoMes.saldos}">
														<td align="center">
															<p:outputLabel value="#{resumoSaldos}" style="font-size: 15px; color: black">
																<f:convertNumber pattern="R$ #,##0.00" currencySymbol="R$" type="currency" />
															</p:outputLabel>
														</td>
													</ui:repeat>
												</tr>
											</table>
										</td>
									</ui:repeat>	
								</tr>	
							</table>
						</p:column>	
					</p:row>
				</p:panelGrid>	
			</p:scrollPanel>
			
			<p:lineChart value="#{resumoBean.model}" legendPosition="w" />
		</p:panel>
	</h:form>
	
</h:body>
</html>


